package org.hpm.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @description: 商品分类表
 * @author: jacklin
 * @date: 2021-12-02
 * @version: V1.0
 */
@Data
@TableName("hpm_category")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "hpm_category对象", description = "商品分类表")
public class HpmCategory implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 分类名称
     */
    @Excel(name = "分类名称", width = 15)
    @ApiModelProperty(value = "分类名称")
    private String name;
    /**
     * 分类类型
     */
    @Excel(name = "分类类型", width = 15)
    @ApiModelProperty(value = "分类类型")
    private Integer type;
    /**
     * 父id
     */
    @Excel(name = "父id", width = 15)
    @ApiModelProperty(value = "父id")
    private Integer fatherId;
    /**
     * 图标
     */
    @Excel(name = "图标", width = 15)
    @ApiModelProperty(value = "图标")
    private String logo;
    /**
     * 口号
     */
    @Excel(name = "口号", width = 15)
    @ApiModelProperty(value = "口号")
    private String slogan;
    /**
     * 分类图
     */
    @Excel(name = "分类图", width = 15)
    @ApiModelProperty(value = "分类图")
    private String catImage;
    /**
     * 背景颜色
     */
    @Excel(name = "背景颜色", width = 15)
    @ApiModelProperty(value = "背景颜色")
    private String bgColor;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    private String updateBy;
    /**
     * 修改时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
}
